#include<bits/stdc++.h>
using namespace std;
inline int read(){
	int x=0;bool f=0;char ch=getchar();
	while(ch<'0'||ch>'9')f^=(ch=='-'),ch=getchar();
	while('0'<=ch&&ch<='9')x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
	return f?-x:x;
}
int main(){
	srand(time(0));
	freopen("soft.in","w",stdout);
	int n=100,k=100;
	printf("%d %d\n",n,k);
	for(int i=2;i<=n;i++){
		int u=i-1,v=i;
		printf("%d %d\n",u,v);
	}
	return 0;
}

